/**
 * Module dependencies.
 */

TopClient = require('./topClient').TopClient;
var client = new TopClient({
    'appkey': '23564156',
    'appsecret': '168696191bbb5bed1afc09a991c55b23',
    'REST_URL': 'http://gw.api.taobao.com/router/rest'
});


exports.send_valid_code = function (telNo, code, callback) {
    client.execute('alibaba.aliqin.fc.sms.num.send', {
        'extend': '',
        'sms_type': 'normal',
        'sms_free_sign_name': '鲸隆洗涤',
        'sms_param': {"code": code},
        'rec_num': telNo,
        'sms_template_code': "SMS_33905099"
    }, function (error, response) {
        // if (!error) console.log(response);
        // else console.log(error);

        callback(error, response);
    });
}

